Encodes string using base64 method.

<div class="definition">
    base64encode(str)
</div>

<div class="arguments">
    <table>
    <tr>
        <td>str</td>
        <td><b>string</b>, string to encode</td>
    </tr>
    </table>
</div>

Returns encoded string.

<textarea class="javascript">
var a = w2utils.base64encode('Some string with or w/o html.');
console.log(a);
</textarea>